<#assign module="driver"/>
<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
<link rel="stylesheet" href="${ctx}/assets/css/jquery.foxibox.css">
</@override>
<@override name="body">
	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					服务人员申请审核
			    </div>
			    <div class="panel-body">
    				<form id="submit_form" action="${ctx}/driverapply/audit" class="form-horizontal" method="post">
    					<input type="hidden" name="applyId" value="${driverapply.id}">
    					<input type="hidden" id="detailedJobType" name="detailedJobType" value="${driverapply.detailedJobType?if_exists}">
						<input type="hidden" id="photo" name="photo" value="${driverapply.photo?if_exists}">
						<input type="hidden" id="license" name="license" value="${driverapply.license?if_exists}">
						<input type="hidden" id="travel" name="travel" value="${driverapply.travel?if_exists}">
						<input type="hidden" id="idCardPhoto" name="idCardPhoto" value="${driverapply.idCardPhoto?if_exists}">
						<input type="hidden" id="idCardHandPhoto" name="idCardHandPhoto" value="${driverapply.idCardHandPhoto?if_exists}">
						<input type="hidden" id="carPhoto" name="carPhoto" value="${driverapply.carPhoto?if_exists}">
						<input type="hidden" id="idCardPhotoBack" name="idCardPhotoBack" value="${driverapply.idCardPhotoBack?if_exists}">
						<input type="hidden" id="qualificationPhoto" name="qualificationPhoto" value="${driverapply.qualificationPhoto?if_exists}">
						<input type="hidden" id="backOfIdCardPhoto" name="backOfIdCardPhoto" value="${driverapply.backOfIdCardPhoto?if_exists}">
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">头像：</label>
		                    <div class="col-sm-3">
		                    	<a <#if driverapply.photo??>href="${ctx}/upload/driver/${driverapply.photo}" class="fancybox" data-fancybox-group="gallery"<#else>src="${ctx}/assets/css/images/member_img.png"</#if>>
			                    	<img width="200" height="200" <#if driverapply.photo??>src="${ctx}/upload/driver/${driverapply.photo}"<#else>src="${ctx}/assets/css/images/member_img.png"</#if> />
		                		</a>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">身份证照片：</label>
		                    <div class="col-sm-3">
		                    	<a <#if driverapply.idCardPhoto??>href="${ctx}/upload/idCardPhoto/${driverapply.idCardPhoto}" class="fancybox" data-fancybox-group="gallery"<#else></#if>>
			                    	<img width="317" height="200" <#if driverapply.idCardPhoto??>src="${ctx}/upload/idCardPhoto/${driverapply.idCardPhoto}"<#else></#if> />
		                		</a>
		                	</div>
		                </div>

						<div class="form-group">
							<label class="col-sm-3 control-label">身份证背面照片：</label>
							<div class="col-sm-3">
								<a <#if driverapply.backOfIdCardPhoto??>href="${ctx}/upload/backOfIdCardPhoto/${driverapply.backOfIdCardPhoto}" class="fancybox" data-fancybox-group="gallery"<#else></#if>>
									<img width="317" height="200" <#if driverapply.backOfIdCardPhoto??>src="${ctx}/upload/backOfIdCardPhoto/${driverapply.backOfIdCardPhoto}"<#else></#if> />
								</a>
							</div>
						</div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">手持身份证照片：</label>
		                    <div class="col-sm-3">
		                    	<a <#if driverapply.idCardHandPhoto??>href="${ctx}/upload/idCardHandPhoto/${driverapply.idCardHandPhoto}" class="fancybox" data-fancybox-group="gallery"<#else></#if>>
			                    	<img width="317" height="200" <#if driverapply.idCardHandPhoto??>src="${ctx}/upload/idCardHandPhoto/${driverapply.idCardHandPhoto}"<#else></#if> />
		                		</a>
		                	</div>
		                </div>

						<div class="form-group">
							<label class="col-sm-3 control-label">网约车资格证书照片：</label>
							<div class="col-sm-3">
								<a <#if driverapply.qualificationPhoto??>href="${ctx}/upload/qualificationPhoto/${driverapply.qualificationPhoto}" class="fancybox" data-fancybox-group="gallery"<#else></#if>>
									<img width="317" height="200" <#if driverapply.qualificationPhoto??>src="${ctx}/upload/qualificationPhoto/${driverapply.qualificationPhoto}"<#else></#if> />
								</a>
							</div>
						</div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">驾驶证照片：</label>
		                    <div class="col-sm-3">
		                    	<a <#if driverapply.license??>href="${ctx}/upload/license/${driverapply.license}" class="fancybox" data-fancybox-group="gallery"<#else></#if>>
			                    	<img width="550" height="200" <#if driverapply.license??>src="${ctx}/upload/license/${driverapply.license}"<#else></#if> />
		                		</a>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">行驶证照片：</label>
		                    <div class="col-sm-3">
		                    	<a <#if driverapply.travel??>href="${ctx}/upload/travel/${driverapply.travel}" class="fancybox" data-fancybox-group="gallery"<#else></#if>>
			                    	<img width="550" height="200" <#if driverapply.travel??>src="${ctx}/upload/travel/${driverapply.travel}"<#else></#if> />
		                		</a>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>工号：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="username" name="username" type="text" value="${newUsername?if_exists}" required readonly/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>昵称：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="name" name="name" type="text" required/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>真实姓名：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="realname" name="realname" type="text" value="${driverapply.realname?if_exists}" required/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>身份证号：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="idCard" name="idCard" type="text" value="${driverapply.idCard?if_exists}" required/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>绑定支付账号：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="bankCard" name="bankCard" type="text" value="${driverapply.bankCard?if_exists}" required/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>性别：</label>
		                    <p class="form-control-static">
	                    	<label style="padding-right:20px;padding-left:20px;">
							  <input type="radio" name="gender" value="男" checked="checked"/>男
							</label>
							<label>
							  <input type="radio" name="gender" value="女"/>女
							</label>
							</p>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>手机号：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="phone" name="phone" type="text" value="${driverapply.phone?if_exists}" required/>
		                    </div>
		                </div>
		                 
					    <div class="form-group">
					      <label class="col-sm-3 control-label"><em>*</em>紧急联系人：</label>
					      <div class="col-sm-3">
					        <input class="form-control" id="emergency" name="emergency" type="text" value="${driverapply.emergency?if_exists}"  placeholder="姓名+电话+关系"/>
					      </div>
					    </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>领证时间：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="licenseTime" name="licenseTime" <#if driverapply.licenseTime??>value="${driverapply.licenseTime?string('yyyy-MM-dd')}"</#if> type="text" required readonly/>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>员工类型：</label>
		                    <div class="col-sm-3">
		                    	<select class="form-control" id="type" name="type" required> 
		                    		<option value="兼职">兼职</option>
		                    		<option value="全职">全职</option>
		                    	</select>
	                    	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>所属公司：</label>
		                    <div class="col-sm-3">
		                    	<select class="form-control" id="companyId" name="companyId" required> 
		                    		<#list companylist as company>
		                    			<option value="${company.id}" <#if company.id==thisCompanyId>selected="selected"</#if>>${company.abbreviation?if_exists}</option>
		                    		</#list>
		                    	</select>
	                    	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label for="type" class="col-sm-3 control-label"><em>*</em>服务类型：</label>
		                    <div class="col-sm-3">
		                    	<div class="checkbox">
		                    		<@daijia>
			                    	<label>
									  <input type="checkbox" name="driverJobType" value="daijia" <#if driverapply.jobType?? && driverapply.jobType?contains('daijia')>checked="checked"</#if> />代驾
									</label>
									</@daijia>
									<@zhuan>
									<label>
									  <input type="checkbox" name="driverJobType" value="zhuanche" <#if driverapply.jobType?? && driverapply.jobType?contains('zhuanche')>checked="checked"</#if> />专车
									</label>
									</@zhuan>
									<@pao>
									<label>
									  <input type="checkbox" name="driverJobType" value="paotui" <#if driverapply.jobType?? && driverapply.jobType?contains('paotui')>checked="checked"</#if> />跑腿
									</label>
									</@pao>
									<@freight>
									<label>
									  <input type="checkbox" name="driverJobType" value="freight" <#if driverapply.jobType?? && driverapply.jobType?contains('freight')>checked="checked"</#if> />货运
									</label>
									</@freight>
									<@zhuanxian>
									<label>
									  <input type="checkbox" name="driverJobType" value="zhuanxian" <#if driverapply.jobType?? && driverapply.jobType?contains('zhuanxian')>checked="checked"</#if> />快车
									</label>
									</@zhuanxian>
								</div>
							</div>
		                </div>
		                
		                <div class="form-group" id="detailedJobType_show_div" <#if driverapply.jobType?? && driverapply.jobType?contains('paotui')><#else>style="display:none;"</#if>>
		                    <label for="type" class="col-sm-3 control-label">跑腿类型：</label>
		                    <div class="col-sm-8">
		                    	<div class="checkbox" id="detailedJobType_div">
			                    <#if detailedJobType??>
							  		<#list detailedJobType as JobType>
									     <label>
								        	<input type="checkbox" name="JobType" id="${JobType.id}" value="${JobType.id}" 
								        	<#if driverapply.detailedJobType?? && driverapply.detailedJobType?contains(JobType.id?string)>checked="checked"</#if>/>
								        	${JobType.typeName}
									     </label>
								  	</#list>
							    </#if>
		                	  </div>
		                	</div>
		                </div>
		                
		                
		                <div class="form-group" style="margin-left:10px;">
			                <label class="col-sm-3 control-label"></label>
			                <input id="submit_button" type="submit" class="btn btn-primary" value="审核通过">
			                <input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/driverapply/list';" value="返回">
			            </div>
		                
		                <h4>其他信息</h4><hr/>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">证件类型：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="licenseType" name="licenseType" type="text"/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">介绍人：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="introducer" name="introducer" type="text" value="${driverapply.introducer?if_exists}"/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">身高(cm)：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="height" name="height" type="number" min="0"/>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">籍贯：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="origin" name="origin" type="text"/>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">家庭住址：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="address" name="address" type="text"/>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">紧急联系人：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="pressingName" name="pressingName" type="text"/>
		                	</div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">紧急电话：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="pressingPhone" name="pressingPhone" type="text"/>
		                	</div>
		                </div>
		                
		                <#--
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">备注(自我介绍)：</label>
		                    <div class="col-sm-3">
		                    	<textarea class="form-control" cols="20" id="memo" name="memo" rows="2">${driverapply.memo?if_exists}</textarea>
		                	</div>
		                </div>
		                -->
			            
					</form>
        		</div>
			</div>
		</div>
	</div>
</@override>
<@override name="footer">
<script src="${ctx}/assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="${ctx}/assets/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${ctx}/assets/js/jquery.fancybox.js"></script>
<script src="${ctx}/assets/js/idcardvalid.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		window.detailedJobType="${driverapply.detailedJobType?if_exists}";
	});
</script>
<script src="${ctx}/assets/js/driverapply.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$('.fancybox').fancybox();
	});
</script>
</@override>
<@extends name="../layout.ftl"/>